#include <iostream>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <math.h>
#include <algorithm>
#define pai 3.1415926
using namespace std;

double getAngle(vector<int>&temp,double*P){
    double t=1;
    double z1=abs(temp[0]*pai/180-P[0]);
    double z2=abs(temp[1]*pai/180-P[1]);
    double x = 1*cos(z2)*cos(z1),
    z = sin(z2);
    double Angle = asin(sqrt(pow(x,2)+pow(z,2)));
    return Angle;
}

int main(){
    vector<vector<int>>result;
    vector<int>temp(2,0);

    double f = 0.1;//米
//    double P1[2] = {5*3.1415926/180,10*3.1415926/180};
//    double P2[2] = {80*3.1415926/180,-50*3.1415926/180};
//    double P3[2] = {180*3.1415926/180,2*3.1415926/180};
    double P1[2] = {0,0};
    double P2[2] = {pai/2,0};
    double P3[2] = {0,pai/2};
    double a1=3,a2=3,a3=3;
    double con1 = atan(a1/f);
    double con2 = atan(a2/f);
    double con3 = atan(a3/f);
    cout<<con1<<","<<con2<<","<<con3<<endl;

    for(double i=0.0;i<360.0;i+=0.1){
        for(double j=-90.0;j<90.0;j+=0.1){
            temp[0] = i;
            temp[1] = j;
            if(abs(getAngle(temp,P1)-con1)<0.1){
                if(abs(getAngle(temp,P2)-con2)<0.1){
                    if(abs(getAngle(temp,P3)-con3)<0.1){
                        result.push_back(temp);
                    }
                }
            }
        }
    }

    cout<<result.size()<<endl;

    for(auto temp:result){
        for(auto tt:temp){
            cout<<tt<<",";
        }
        cout<<"\n";
    }
    return 0;
}